<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>用户</title>
		<script type="text/javascript">
			function post(action){
					document.form1.action=action;
					document.form1.submit();
				}
		</script>
	</head>
	<body>
	<jsp:include page="/system/language"/>
		<form action="" method="post" name="form1">
			username:<input name="user.userName" type="text" value="${user.userName}"/><br/>
			password:<input name="user.userPassword" type="text" value="${user.userPassword}"/><br/>
			Age:<input name="user.userAge" type="text" value="${user.userAge}"/><br/>
			Sex:<input name="user.userSex" type="text" value="${user.userSex}"/><br/>
			Address:<input name="user.userAddress" type="text" value="${user.userAddress}"/><br/>
			<input name="user.userId" id="user.userId" value="${user.userId}" type="hidden"/>
			<input type="button" value="更新" onclick="post('user/u')">
			<input type="button" value="删除" onclick="post('user/d')">
			<a href="/user/regist">创建用户</a>
		</form>
		<hr/>
		<s:debug/>
	</body>
</html>